Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add OpenTelemetry metrics implementation #2899

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

achingbrain
Copy link
Member

Adds a Metrics interface implementation that is powered by an OpenTelemetry backend.

It tracks the same metrics as @libp2p/prometheus-metrics but also supports the new function tracing added in #2898.

See the readme for a usage example.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@achingbrain achingbrain requested a review from a team as a code owner December 19, 2024 18:33
@achingbrain achingbrain force-pushed the feat/add-otel-metrics branch from a512fe4 to 76381a0 Compare December 19, 2024 18:40
Base automatically changed from feat/add-trace-function-to-metrics to main January 7, 2025 09:53
Adds a `Metrics` interface implementation that is powered by an
OpenTelemetry backend.

See the readme for a usage example.
@achingbrain achingbrain force-pushed the feat/add-otel-metrics branch from 76381a0 to dec8178 Compare January 7, 2025 10:11
@achingbrain achingbrain merged commit abe9bd1 into main Jan 7, 2025
34 checks passed
@achingbrain achingbrain deleted the feat/add-otel-metrics branch January 7, 2025 15:29
@achingbrain achingbrain mentioned this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant